Release 10.1A: OpenEdge Development:
Web Services


Defining object IDs in WSDL

This is a sample of the types section that might appear in the WSDL for many of the sample Web services in this chapter. (This example is for RPC/Encoded, but similar for all SOAP formats):

WSDL Containing an object ID definition
<types> 
   <schema elementFormDefault="unqualified" 
      targetNamespace="urn:OrderSvc:OrderInfo" 
      xmlns="http://www.w3.org/2001/XMLSchema"> 
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> 
      <complexType name="OrderInfoID"> 
         <sequence> 
            <element name="UUID" type="xsd:string"/> 
         </sequence> 
      </complexType> 
      <!-- Temp Table declarations here (if any) --> 
   </schema> 
   <!-- Additional Object Schema Declarations (if any) --> 
</types> 

Note: The samples in this chapter are not all available on the Documentation and Samples CD or Progress Documentation Web site.

The WSDL schema definition for each Web service object (except a session-free AppObject) defines the SOAP header element that contains the value of its object ID as a <complexType>. As shown in the example, the name for the SOAP header element is the name of the <complexType>, in this example, "OrderInfoID". The name of the element that contains the value of the object ID is "UUID", defined as an element of type "xsd:string". This definition is the same for the object IDs of all Web service objects, differing only in the name of the object ID element.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095